package org.ands.rifcs;

import java.util.Iterator;

import javax.xml.XMLConstants;
import javax.xml.namespace.NamespaceContext;

 public class RifCsNamespaceContext implements NamespaceContext{
	 
	 public static String RIFCS_NAMESPACE_URI = "http://ands.org.au/standards/rif-cs/registryObjects";
	 public static String RIFCS_NAMESPACE_PREFIX = "ro";
	 
        public String getNamespaceURI(String prefix)
        {
            if (prefix.equals(RIFCS_NAMESPACE_PREFIX)){
            	return RIFCS_NAMESPACE_URI;
            }
            else{
            	return XMLConstants.NULL_NS_URI;
            }
        }
        
        public String getPrefix(String namespace)
        {
            if (namespace.equals(RIFCS_NAMESPACE_URI)){
            	return RIFCS_NAMESPACE_PREFIX;
            }
            else{
            	assert(false);
                return null;
            }
        }

        public Iterator<?> getPrefixes(String namespace)
        {
            return null;
        }
 } 
 